<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="{:U('accountCheckingList')}" method="post">
        <input type="hidden" name="id" value="{:I('request.id')}">
        <div class="bjui-searchBar">
            <div class="bjui-searchBar">
                <label>对账订单状态：</label>
                <div role="group" class="btn-group">
                    <select name="accountStatus" data-toggle="selectpicker">
                        <option value="">全部</option>
                        <option value="正常"
                        <?php echo I("accountStatus")=="正常" ? "selected='true'" : "";?>>正常</option>
                        <option value="异常"
                        <?php echo I("accountStatus")=="异常" ? "selected='true'" : "";?>>异常</option>
                        <option value="退款"
                        <?php echo I("accountStatus")=="退款" ? "selected='true'" : "";?>>退款</option>
                    </select>
                </div>
                <button type="submit" class="btn-default" data-icon="search">查询</button>
                  <a class="btn btn-orange" href="javascript:;" onclick="$(this).navtab('reloadForm', true)"
                     data-icon="undo">清空查询</a> &nbsp;
            </div>
        </div>
    </form>
</div>
<style>
    .table-striped > tbody > .abnormal>td{
        background-color:red !important;
    }
</style>
<div class="bjui-pageContent tableContent">
  <form action="{:U('accountCheckingComplete')}" class="pageForm" data-toggle="validate" method="post">
  <input type="hidden" name="id" value="{:I('request.id')}">
  <table class="table table-bordered table-hover table-striped table-top">
    <thead>
      <tr>
        <!-- 订单编号   订单总额    佣金    实际总额  交易金额 操作 -->
        <!--<th width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>-->
        <th align="center">订单编号</th>
        <th align="center">订单总额</th>
        <th align="center">佣金</th>
        <th align="center">实际总额</th>
        <th align="center">交易金额</th>
      </tr>
    </thead>
    <tbody>
      <?php foreach($list as $arr):?>
      <tr class="<?php echo $arr['account_abnormal']==1 || $arr['trade_status']==0 ? 'abnormal':''?>">
        <!--<td><input type="checkbox" name="ids" data-toggle="icheck" value="{$arr.id}"></td>-->
        <!-- 订单编号 -->
        <td align="center">{$arr['order_sn']?$arr['order_sn']:$arr['host_sn']}</td>
        <!-- 订单总额 -->
        <td align="center">{$arr.order_amount}</td>
        <!-- 佣金 -->
        <td align="center">{$arr.bill_commission}</td>
        <!-- 实际总额 -->
        <td align="center">{$arr.actual_amount}</td>
        <!-- 交易金额 -->
        <td align="center">{$arr.bill_amount}</td>
      </tr>
      <?php endforeach;?>
    </tbody>
  </table>
  </form>
</div>
<div class="bjui-pageFooter">
    <?php if($pageTotal==$pageCurrent):?>
    <ul>
        <li>
            <button type="submit" class="btn-default" data-icon="save">对账完成</button>
        </li>
    </ul>
    <?php endif;?>
  <div class="pages"> <span>每页&nbsp;</span>
    <div class="selectPagesize">
      <select data-toggle="selectpicker" data-toggle-change="changepagesize">
        <option value="{$pageSize}">{$pageSize}</option>
        <option value="{$pageSize*3}">{$pageSize*3}</option>
        <option value="{$pageSize*6}">{$pageSize*6}</option>
        <option value="{$pageSize*12}">{$pageSize*12}</option>
        <option value="{$pageSize*15}">{$pageSize*15}</option>
      </select>
    </div>
    <span>&nbsp;条，共 {$total} 条</span> </div>
  <div class="pagination-box" data-toggle="pagination" data-total="{$total}" data-page-size="{$pageSize}"
         data-page-current="{$pageCurrent}"></div>
</div>
